package com.ikas.autumn.iec104.common.task;

import com.lmax.disruptor.WorkHandler;

/**
 * All rights Reserved, Designed By www.sunseagear.com
 */
public class TaskHandler implements WorkHandler<TaskEvent> {

    @Override
    public void onEvent(TaskEvent event) throws Exception {
        //运行任务
        event.getTask().run();
    }

}
